﻿using Autofac;
using SIS.Infrastructures.Context;

namespace SIS.Infrastructures.Modules
{
    public class ContextModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<DbContext>().As<IDbContext>().InstancePerLifetimeScope();
        }
    }
}
